<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
    </head>
    <body>
    </body>
    <script type="text/javascript">

    var obj = {
        "name":"刘子豪",
        "age" : 18 ,
        "sex" : "男" ,
        "height": 180 ,
        "nvyou" : {
            "name":"女朋友",
            "sex" :"女",
            "age" : 18,
            "height": 165
        }
    };

    console.log(obj.nvyou.name);
    console.log(obj["nvyou"]["height"]);
</script>
</html>